import React from 'react';
import { GlobalStyle } from '../src/stories/components/shared/global';
import { addDecorator, addParameters} from '@storybook/react';
import { withA11y } from '@storybook/addon-a11y';

export const parameters = {
  actions: { argTypesRegex: "^on[A-Z].*" },
}
addParameters({
  options: {
    showRoots: true,
  },
  dependencies: {
    withStoriesOnly: true,
    hideEmpty: true,
  },
});
addDecorator(withA11y);
addDecorator((story)=> (
  <>
    <GlobalStyle/>
    {story()}
  </>
))










